#ifndef _CRT_BREAK_HPP_
#define _CRT_BREAK_HPP_

#include <crt_core.hpp>

#ifdef __cplusplus
extern "C" {
#endif

static_inline void WaitDebug(void)
{
#if (TARGET_OS == OS_WIN)
    DebugBreak();
#elif (TARGET_OS == OS_POSIX)
    asm("int3");
#endif
}

#ifdef __cplusplus
}
#endif

#endif
